/*
 * @Author: KKKKKK
 * @Date: 2021-01-10 12:08:35
 * @LastEditors: KKKKKK
 * @LastEditTime: 2021-01-10 12:08:35
 */
import axios from './config'
import url from './url'
const baseUrl = process.env.VUE_APP_BASE_URL

/* 举报 */
// 新增举报
const reportInfoCreate = (params) => axios.post(baseUrl + url.reportInfo.create, params)

// 删除举报
const reportInfoDelete = (id) => axios.delete(baseUrl + url.reportInfo.delete + `/${id}`)

// 修改举报
const reportInfoUpdate = (params, id) => axios.post(baseUrl + url.reportInfo.update + `/${id}`, params)

// 获取某个举报
const reportInfoLoad = (id) => axios.get(baseUrl + url.reportInfo.load + `/${id}`)

// 获取举报列表
const reportInfoPage = (params) => axios.get(baseUrl + url.reportInfo.page, { params })

export default {
    reportInfoCreate,
    reportInfoDelete,
    reportInfoUpdate,
    reportInfoLoad,
    reportInfoPage,
}